package com.fzj.example.design.strategy;

public class Test {
    public static void main(String[] args) {
        Context context = new Context();
        context.setStrategy(new StudentStrategy());
        context.addUser();
        context.deleteUser();
        context.updateUser();
        context.setStrategy(new SocialStrategy());
        context.addUser();
        context.deleteUser();
        context.updateUser();
    }
}
